package com.ug_project.objects

/**
 * Created by yeganaaa on 5/10/2017 : 3:18 AM.
 */

val String.isPhone: Boolean
    get() {
        return length == 11
    }

fun String.NotNullOrEmpty(action: () -> Unit) {
    if (!this.isNullOrEmpty()) {
        action()
    }
}